#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import rotationpic_blueprint
from api.rotationpicResource.rotationpicResource import RotationpicResource
from api.rotationpicResource.rotationpicOtherResource import RotationpicOtherResource

api = Api(rotationpic_blueprint)

api.add_resource(RotationpicResource, '/rotationpic/<rotation_id>', '/rotationpic', endpoint='Rotationpic')


@rotationpic_blueprint.route('/rotationpic/update/<rotation_id>', methods=['PUT'], endpoint='RotationpicUpdate')
def update(rotation_id):
    return RotationpicOtherResource.sensitive_update(rotation_id)
